export const actions = {
    getNameList({}) {
        return this.$api.talk.getNameList().then((res) => {
            console.log(res)
            if(res.data.status==200){
                return Promise.resolve(res.data.data)
            }
            else{
                return Promise.reject(new Error(res.data.msg))
            }
        },(error) => {
            return Promise.reject(error)
        }).catch((error)=>{
            return Promise.reject(error)
        })
    },
    getTalkList({},auth_id) {
        console.log(res)
        return this.$api.talk.getTalkList(auth_id).then((res) => {
            if(res.data.status==200){
                return Promise.resolve(res.data.data)
            }
            else{
                return Promise.reject(new Error(res.data.msg))
            }
        },(error) => {
            return Promise.reject(error)
        }).catch((error)=>{
            return Promise.reject(error)
        })
    },
}